package com.fxm.service;

import com.fxm.domain.User;
import com.fxm.returns.RespEntity;
import com.fxm.vo.param.IntegralParam;
import com.fxm.vo.param.OpenParam;

/**
 * <p>
 * 用户基本信息 服务类
 * </p>
 *
 * @author fxm
 * @since 2020-12-30
 */
public interface UserService {
    /**
     * 根据openid获取用户
     * @param openParam
     * @return
     */
    RespEntity<User> getUserByOpenId(OpenParam openParam);
    /**
     * 添加用户信息
     * @param user
     */
    RespEntity insertUser(User user);

    /**
     * 修改用户信息
     * @param integralParam
     * @return
     */
    RespEntity updateUser(IntegralParam integralParam);
}
